<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>

<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="360.0" prefWidth="640.0" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.demo16.HelloController">
    <TableView fx:id="booksTable" layoutX="29.0" layoutY="51.0" prefHeight="148.0" prefWidth="587.0" AnchorPane.bottomAnchor="161.0" AnchorPane.leftAnchor="22.0" AnchorPane.rightAnchor="22.0" AnchorPane.topAnchor="51.0">
      <columns>
          <TableColumn fx:id="titleColumn" prefWidth="209.0" text="Название"/>
          <TableColumn fx:id="authorColumn" prefWidth="169.0" text="Автор"/>
          <TableColumn fx:id="editionColumn" prefWidth="109.0" text="Дата издания"/>
          <TableColumn fx:id="genreColumn" prefWidth="108.0" text="Жанр"/>
      </columns>
    </TableView>
    <ToggleButton fx:id="toggleThemeButton" layoutX="510.0" layoutY="36.0" mnemonicParsing="false" onAction="#switchTheme" text="Тема" AnchorPane.rightAnchor="22.0" AnchorPane.topAnchor="15.0"/>
    <Button fx:id="addB" layoutX="199.0" layoutY="209.0" mnemonicParsing="false" onAction="#addBooks" text="Добавить" AnchorPane.bottomAnchor="125.0" AnchorPane.leftAnchor="199.0"/>
    <Button fx:id="deleteB" layoutX="305.0" layoutY="209.0" mnemonicParsing="false" onAction="#deleteSelectedRow" text="Удалить" AnchorPane.bottomAnchor="125.0" AnchorPane.leftAnchor="301.0"/>
    <Button fx:id="saveB" layoutX="395.0" layoutY="209.0" mnemonicParsing="false" onAction="#saveBooksToFile" text="Сохранить" AnchorPane.bottomAnchor="125.0" AnchorPane.leftAnchor="395.0"/>
    <Button fx:id="editB" layoutX="510.0" layoutY="209.0" mnemonicParsing="false" onAction="#editBooks" text="Редактировать" AnchorPane.bottomAnchor="125.0" AnchorPane.leftAnchor="503.0"/>
    <TextField fx:id="titleField" layoutX="22.0" layoutY="274.0" promptText="Название" AnchorPane.bottomAnchor="125.0" AnchorPane.leftAnchor="22.0"/>
    <TextField fx:id="authorField" layoutX="22.0" layoutY="309.0" promptText="Автор" AnchorPane.bottomAnchor="90.0" AnchorPane.leftAnchor="22.0" />
    <TextField fx:id="editionField" layoutX="22.0" layoutY="344.0" promptText="Дата издания" AnchorPane.bottomAnchor="56.0" AnchorPane.leftAnchor="22.0"/>
    <TextField fx:id="genreField" layoutX="22.0" layoutY="370.0" promptText="Жанр" AnchorPane.bottomAnchor="22.0" AnchorPane.leftAnchor="22.0"/>
    <TextField fx:id="searchField" layoutX="141.0" layoutY="15.0" prefHeight="26.0" prefWidth="358.0" promptText="Поиск книги по названию и автору (через запятую)" AnchorPane.leftAnchor="141.0" AnchorPane.rightAnchor="141.0" AnchorPane.topAnchor="15.0"/>
    <Button layoutX="553.0" layoutY="312.0" mnemonicParsing="false" onAction="#showHelp" text="Справка" AnchorPane.bottomAnchor="22.0" AnchorPane.rightAnchor="15.0"/>
</AnchorPane>